<?php
/*
 * Script to place common functions for the application
 * Joaquin Olvera 11/11/2011
 */

/**
 * simpleXMLToArray function
 * converts to array a xml string
 * 
 * @param String $strXML
 */
function simpleXMLToArray($strXML)
{
	$xml = simplexml_load_string($strXML);
	$json = json_encode($xml);
	return json_decode($json,TRUE);
}
?>